package com.wjf.accesscontrol.net.api

import com.wjf.accesscontrol.entity.BaseEntity
import com.wjf.accesscontrol.entity.LoginEntity
import com.wjf.accesscontrol.entity.StationDetailEntity
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
import retrofit2.http.Url

interface ApiService {


    @POST()
    suspend fun login(@Url url: String, @Body requestBody: RequestBody): BaseEntity<LoginEntity>

    @GET()
    suspend fun stationDetail(@Url url: String, @Query("machineId") machineId: String): BaseEntity<StationDetailEntity>

    @POST()
    suspend fun upload(@Url url: String, @Body requestBody: RequestBody): BaseEntity<StationDetailEntity>

    @POST()
    suspend fun deviceMachine(@Url url: String, @Body requestBody: RequestBody): BaseEntity<Any>

}